<p class="Head1"><help:paragraphinfo state="U" number="1"/><help:key-word value="Sin; function" tag="kw66493_1"/><help:link Id="66493">Sin Function [Runtime]</help:link></p>
<p class="Paragraph"><help:paragraphinfo state="U" number="2"/>Returns the sine of an angle. The angle is specified in radians. The result lies between -1 and 1.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="3" xmlns:help="http://openoffice.org/2000/help"/>Using the angle Alpha, the Sin Function returns the ratio of the length of the opposite side of an angle to the length of the hypotenuse in a right-angled triangle.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="4" xmlns:help="http://openoffice.org/2000/help"/>Sin(Alpha) = side opposite the angle/hypotenuse</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="10" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Number:</span> Numeric expression that defines the angle in radians that you want to calculate the sine for.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="11" xmlns:help="http://openoffice.org/2000/help"/>To convert degrees to radians, multiply degrees by Pi/180, and to convert radians to degrees, multiply radians by 180/Pi.</p>
<p class="PropText"><help:paragraphinfo state="U" number="16" xmlns:help="http://openoffice.org/2000/help"/>REM In this example, the following entry is possible for a right-angled triangle:</p>
<p class="PropText"><help:paragraphinfo state="U" number="17" xmlns:help="http://openoffice.org/2000/help"/>REM The side opposite the angle and the angle (in degrees) to calculate the length of the hypotenuse:</p>
<p class="PropText"><help:paragraphinfo state="U" number="19" xmlns:help="http://openoffice.org/2000/help"/>REM Pi = 3.1415926 is a predefined variable</p>
<p class="PropText"><help:paragraphinfo state="U" number="20" xmlns:help="http://openoffice.org/2000/help"/>Dim d1 as Double</p>
<p class="PropText"><help:paragraphinfo state="U" number="21" xmlns:help="http://openoffice.org/2000/help"/>Dim dAlpha as Double</p>
<p class="PropText"><help:paragraphinfo state="U" number="22" xmlns:help="http://openoffice.org/2000/help"/>d1 <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>= InputBox$ ("Enter the length of the opposite side: ","Opposite Side")</p>
<p class="PropText"><help:paragraphinfo state="U" number="23" xmlns:help="http://openoffice.org/2000/help"/>dAlpha = InputBox$ ("Enter the angle Alpha (in degrees): ","Alpha")</p>
<p class="PropText"><help:paragraphinfo state="U" number="24" xmlns:help="http://openoffice.org/2000/help"/>Print "The length of the hypotenuse is"; (d1 / sin (dAlpha * Pi / 180))</p>